package service;

import java.util.ArrayList;
import java.util.List;

import pojo.User;

public class UserServiceImpl implements UserService{
	public List<User> list=new ArrayList<User>();

	@Override
	public User addUser(User u) {
		synchronized (u) {
			list.add(u);
		}
		
		
		return u;
	}

	@Override
	public List<User> getUsers() {
		
		return list;
	}

}
